package com.mercury.pattern._11_proxy._002_jdk_proxy;

public class Client {
    public static void main(String[] args) {
        ProxyFactory factory = new ProxyFactory(new TeacherDaoImpl());
        ITeacherDao proxy = (ITeacherDao)factory.getProxyInstance();
        proxy.teach();

    }
}
